<template>
    <!-- modal -->
    <div class="modal" v-show="ModalCopy.isModal">
      <div class="modal-fiter"></div>
      <div class="modal-content">
        <div class="modal-center">
          <transition name="van-fade">
          <div class="ModalCopy" v-show="ModalCopy.isModal">
            <div class="null72"></div>
            <div class="divOne">{{ModalCopy.title}}</div>
            <div class="null10"></div>
            <div class="divOne">{{ModalCopy.name}}</div>
            <div class="null70"></div>
            <div class="divTwo">
              <div @click="hide">取 消</div>
              <span
                class="btn"
                v-on:click="ModalCopyClick"
                :data-clipboard-text="ModalCopy.copy"
              >{{ModalCopy.rightBtn}}</span>
            </div>
          </div>
           </transition>
        </div>
      </div>
    </div>
</template>

<script>
import mixin from "@/utils/mixin";
export default {
  name: "ModalCopy",
  props: ["ModalCopy"],
  mixins: [mixin],
  data() {
    return {
      show: {}
    };
  },
  mounted() {
    //console.log(this.ModalCopy);
  },
  methods: {
    hide: function() {
      this.ModalCopy.isModal = false;
      this.$emit("update:ModalCopy", this.ModalCopy);
    },
    ModalCopyClick() {
      this.$emit("ModalCopyClick", this.ModalCopy);
      this.hide();
    }
  }
};
</script>
<style lang="scss" scoped>
.ModalCopy {
  width: 562px;
  // height: 335px;
  background: rgba(255, 255, 255, 1);
  border-radius: 8px;
  position: relative;
  .null10 {
    width: 100%;
    height: 12px;
  }
  .null70 {
    width: 100%;
    height: 70px;
  }
  .null72 {
    width: 100%;
    height: 72px;
  }
  .divOne {
    font-size: 32px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    color: rgba(48, 49, 51, 1);
    width: 100%;
    text-align: center;
  }
  .divTwo {
    width: 100%;
    height: 95px;
    line-height: 95px;
    border-top: 3px solid #f0f0f0;
    position: relative;
    div {
      position: absolute;
      left: 0px;
      top: 0px;
      width: 279px;
      text-align: center;
      border-right: 1px solid #f0f0f0;
      font-size: 34px;
      font-family: PingFangSC-Semibold;
      font-weight: 600;
      color: rgba(48, 49, 51, 1);
    }
    span {
      position: absolute;
      right: 0px;
      top: 0px;
      width: 280px;
      text-align: center;
      font-size: 34px;
      font-family: PingFangSC-Semibold;
      font-weight: 600;
      color: rgba(255, 37, 37, 1);
    }
  }
}
</style>